home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 8
/
Aminet 8 (1995)(GTI - Schatztruhe)[!][Oct 1995].iso
/
Aminet
/
util
/
cli
/
remdoubles.lha
/
remdoubles
/
remdoubles.readme
< prev
Wrap
Text File
|
1995-06-05
|
1KB
|
40 lines
Short: Removes double lines in sorted text-files
Uploader: toenges@fact.rhein-ruhr.de (Till Toenges)
Author: toenges@fact.rhein-ruhr.de (Till Toenges)
Type: util/cli
"remdoubles" is a 4:00 o'clock AM hack to remove double lines in a sorted file
(4:00 o'clock AM hack means that it doesn't support things like CTRL_C and is
just something i needed at 4:00 o'clock AM). It is case-sensitive and the only
argument it needs is the filename. It takes the WHOLE stuff you typed in after
"remdoubles" i.e.
remdoubles x y z
will look for a file called 'x y z', and
remdoubles "x y z"
will look for a file called '"x y z"'. Output will be printed to the standard
output.
DON'T USE LINES LONGER THAN 998 CHARS!
EXAMPLE:
ORIGINAL OUTPUT
-------- ------
testa testa
testa testb
testb testc
testc Testc
testc testx
Testc testf
testx testx
testf teste
testx
teste
teste
teste
Use the source as you like, but beware, it's not optimized (i'm relying on my
assembler).